﻿using System;
using System.Collections.Generic;
using System.Text;
using GraphLib;

namespace ctem.gui.WrappedGraphLib
{
    class Edge : GraphLib.IEdge
    {
        IVertex m_start;
        IVertex m_finish;
        string m_name;
        double m_weight;

        public double Weight
        {
            get { return m_weight; }
            set { m_weight = value; }
        }

        public string GetName()
        {
            return m_name;
        }
        public IVertex GetStart()
        {
            return (m_start as IVertex);
        }
        public IVertex GetFinish()
        {
            return (m_finish as IVertex);
        }

        public Edge(string _name, IVertex start, IVertex finish, double _Weight)
        {
            m_start = start;
            m_finish = finish;
            m_name = _name;
            m_weight = _Weight;
        }
    }
}
